package com.xin.dao.impl;

import com.xin.dao.OrderDao;
import com.xin.dao.OrderItemDao;
import com.xin.pojo.OrderItem;

public class OrderItemDaoimpl extends BaseDao implements OrderItemDao {
    @Override
    public int saveOrderItem(OrderItem orderItem) {
        String sql="insert into t_order_item (`name`,`count`,`price`,`total_price`,`order_id`)values(?,?,?,?,?)";
        return
        update(sql,orderItem.getName(),orderItem.getCount(),orderItem.getPrice(),orderItem.getTotalPrice(),orderItem.getOrdertId());
    }
}
